diff options
Diffstat (limited to 'cloud/app/src/routes/[workspaceID].tsx')
| -rw-r--r-- | cloud/app/src/routes/[workspaceID].tsx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cloud/app/src/routes/[workspaceID].tsx b/cloud/app/src/routes/[workspaceID].tsx new file mode 100644 index 000000000..706a64323 --- /dev/null +++ b/cloud/app/src/routes/[workspaceID].tsx @@ -0,0 +1,15 @@ +import { createAsync, query } from "@solidjs/router" +import { getActor, withActor } from "~/context/auth" + +const getPosts = query(async () => { + "use server" + return withActor(() => { + return "ok" + }) +}, "posts") + + +export default function () { + const actor = createAsync(async () => getActor()) + return <div>{JSON.stringify(actor())}</div> +} |
